package com.xmg.p2p.base.domain;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class SystemDictionary extends BaseDomain{
    private String sn;
    private String title;

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getJsonString(){
        Map<String,Object> json = new HashMap<>();
        json.put("id",id);
        json.put("title",title);
        json.put("sn",sn);
        return JSONObject.toJSONString(json);
    }
}
